<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>emoji-convert</title>
</head>
<body>

<pre>
    var list = [
        {
            text: "测试亲吻表情",
            class: "emoji-qinwen",
            url: "",
            code: "\u{1f618}"
        }
    ]

    emojiConvert.extend(list);
    emojiConvert.extend(emojiConvertResourceBase);

    var msg = '哈哈[大笑]，亲亲[测试亲吻表情]';

</pre>

<hr />

<div>
    emojiConvert.toUnicode(msg):
    <div id="toUnicode"></div>
</div>

<br/>

<div>
    emojiConvert.toHtml(msg):
    <div id="toHtml2"></div>
    <div id="toHtml"></div>
</div>

<br/>

<div>
    emojiConvert.toText("😃"):
    <div id="toText"></div>
</div>


<script src="./index.js"></script>
<script src="http://wangwl.net/static/demo/emoji-convert-resource-base/index.js"></script>
<script>

    var list = [
        {
            text: "测试亲吻表情",
            class: "emoji-qinwen",
            url: "",
            code: "\u{1f618}"
        }
    ]

    emojiConvert.extend(list);
    emojiConvert.extend(emojiConvertResource_index);

    var msg = '哈哈[大笑]，亲亲[测试亲吻表情]';

    document.querySelector('#toUnicode').innerHTML = emojiConvert.toUnicode(msg);
    document.querySelector('#toHtml').innerText = emojiConvert.toHtml(msg);
    document.querySelector('#toHtml2').innerHTML = emojiConvert.toHtml(msg);
    document.querySelector('#toText').innerHTML = emojiConvert.toText('😃');

</script>

</body>
</html>